package runtime.demo3.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Title: SQLInteger
 * @Description: (注解Integer类型字段)
 * @return:
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface SQLInteger {
    // 字段对应的数据库表的列名
    String name() default "";
    // 嵌套注解
    Constraints constrain() default  @Constraints;
}
